package com.tbit.main.service.impl;

import com.tbit.main.dao.core.ParkDao;
import com.tbit.main.pojo.Park;
import com.tbit.main.service.ParkService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service("parkService")
public class ParkServiceImpl implements ParkService {
    @Autowired
    private ParkDao parkDao;

    @Override
    public void insert(Park park) {
        parkDao.insert(park);
    }

    @Override
    public Park getByMachineId(Integer machineId) {
        return parkDao.getByMachineId(machineId);
    }

    @Override
    public void del(Integer machineId) {
        parkDao.del(machineId);
    }

    @Override
    public List<Integer> getByAccountId(Integer accountId) {
        return parkDao.getByAccountId(accountId);
    }

}  